$(document).ready(function() {
	$('#search').focus();
	$('#mform').submit(function(e) {
		var val =$.trim($('#search').val());
		if (val == undefined || val == '') {
			return false;
		}
		return true;
	});
	/* 定义所有class为copy标签，点击后可复制被点击对象的文本 */
	try {
		$("#copyToClipboard").zclip({
			path: "//cdn.bootcss.com/zclip/1.1.2/ZeroClipboard.swf",
			copy: function(){
				return $('#magnetLink').text();
			},
			afterCopy:function(){ 
			}
		});
	} catch (e) {

	}
});